<ul id="user_utility_links" class="nav navbar-nav navbar-right">
  <% if user_signed_in? %>
    <li>
      <%= link_to sufia.notifications_path do %>
        Notifications
        <%= render partial: 'users/notify_number' %>
      <% end %>
    </li>
    <li class="dropdown">
      <%= link_to sufia.profile_path(current_user), role: 'button', data: { toggle: 'dropdown' }, aria: { haspopup: true, expanded: false} do %>
        <span class="sr-only">View</span>
        <span class="hidden-xs">&nbsp;<%= current_user.name %></span>
        <span class="sr-only"> profile</span>
        <span class="fa fa-user"></span>
        <span class="caret" ></span>
      <% end %>
      <ul class="dropdown-menu dropdown-menu-right" role="menu">
        <li><%= link_to 'View Profile', sufia.profile_path(current_user) %></li>
        <li><%= link_to 'Edit Profile', sufia.edit_profile_path(current_user) %></li>
        <li class="divider"></li>
        <li><%= link_to 'Logout', main_app.destroy_user_session_path %></li>
      </ul>
    </li><!-- /.btn-group -->
  <% else %>
    <li>
      <%= link_to main_app.new_user_session_path do %>
        <span class="glyphicon glyphicon-log-in" aria-hidden="true"></span> Login
      <% end %>
    </li>
  <% end %>
</ul>
